#include<iostream>

void gameinstruction() {
	system("cls");
    setColor(15);
	std::cout << "                      *============================*" << std::endl;
	std::cout << "                      |          游戏说明          |" << std::endl;
	std::cout << "                      *============================*" << std::endl;
	std::cout << std::endl;
	std::cout << "                      按下WSAD控制贪吃蛇移动" << std::endl;
	std::cout << "                      吃到食物蛇身加长并且速度增加" << std::endl;
	std::cout << "                      蛇头碰到自身或者墙则游戏结束" << std::endl;
	std::cout << "                      按下Q加速,E减速" << std::endl;
	std::cout << "                      不同速度下得分不同" << std::endl;
    std::cout << std::endl;
    std::cout << "                            输入0返回主菜单" << std::endl;
	while (1) {
		for (int i = 1;i <= 2000;i++)++score;
		for (int i = 1;i <= 2000;i++)--score;
		if (GetAsyncKeyState('0') & 0x8000) {
			mode = 0;
			break;
		}
	}
    mode = 0;
}
